{foreach $column as $key=>$value}
{if $value['type']=='pid'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    {{#  if(d.chengji == 0){ }}
    {{# for(var a=0;a<d.chengji;a++){}}
    &nbsp;&nbsp;&nbsp;&nbsp;
    {{#}}}
            {{#  if(d.child > 0){ }}
                <span class="x-show" status="true" ids="{{d.id}}" fid="{{d.pid}}"><i class="layui-icon" >&#xe623;</i>{{d.{$value['name']}}}</span>
            {{# }else{}}
                <span class="x-show" status="true" ids="{{d.id}}" fid="{{d.pid}}">{{d.{$value['name']}}}</span>
            {{# }}}

    {{#  } else{ }}
    {{# for(var a=0;a<d.chengji;a++){}}
    &nbsp;&nbsp;&nbsp;&nbsp;
    {{#}}}
    {{#  if(d.child > 0){ }}
    <span class="x-show" status="true" ids="{{d.id}}" fid="{{d.pid}}"><i class="layui-icon" >&#xe623;</i>{{d.{$value['name']}}}</span>
    {{# }else{}}
    <span class="x-show" status="true" ids="{{d.id}}" fid="{{d.pid}}">├{{d.{$value['name']}}}</span>
    {{# }}}
    {{#  } }}


</script>

{/if}
{if $value['type']=='switch'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <input type="checkbox" field="{$value['name']}" value="{{d.id}}" lay-skin="switch" lay-text="{:translateStr($value['option'][0])}|{:translateStr($value['option'][1])}" lay-filter="sexDemo" {{ d.{$value['name']} == 1 ? 'checked' : '' }}>
</script>
{/if}


{if $value['type']=='img'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <img  class="souxing" src="{{d.{$value['name']}}}" onclick="tableyulan(this)" style="{$value['style']}" height="30"/>
</script>
{/if}


{if $value['type']=='status'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <span class="layui-btn layui-btn-xs layui-btn-radius {{d.{$value['name']}==1? '':'layui-btn-danger'}}">{{d.{$value['name']}==1? '{$value["option"][0]}':'{$value["option"][1]}'}}</span>
</script>
{/if}


{if $value['type']=='imgs'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <img class="souxing" src="{{d.{$value['name']}[0]}}" onclick="tableyulan(this)" height="30"/>
</script>
{/if}

{if $value['type']=='video'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <video  src="{{d.{$value['name']}}}" height="30"></video>
</script>
{/if}


{if $value['type']=='button'}
<script type="text/html" id="{$value['name']}">
    <!-- 这里的 checked 的状态只是演示 -->
    <button class="layui-btn layui-btn-xs" lay-event="button" data-action="{$value['action']}"  data-field="{$value['name']}" data-value="{{d.{$value['name']}}}"  >{{d.{$value['name']}}}</button>
</script>
{/if}


{/foreach}